﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListInner.aspx.cs" Inherits="Web.admin.CompetitionManage.ListInner" %>
<%@ Register Assembly="Ling.Pager" Namespace="Ling.Pager" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../css/style.css" rel="Stylesheet" />
    <script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../js/function.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="top_div">
        <div class="top_div_left" >
                <table>
                    <tr >
                        <td ><img src="../images/main_hl.gif" alt="" /></td>
                        <td ><img src="../images/main_hl2.gif" alt="" /></td>
                        <td class="topNav"><span>校级竞赛项目</span></td>
                        <td><img src="../images/main_hr.gif" alt="" /></td>
                    </tr>
                </table>
        </div>
    </div>
    <div class="middle_div">
        <div class="middle_left"></div>
        <div class="middle_middle">
            <div class="navigation"><span>首页&gt;竞赛管理&gt;校级竞赛</span></div>
            <div class="tools_box">
                <div class="tools_bar">
                    <a href="AddInner.aspx"  class="tools_btn"><span><b class="add">添加竞赛</b></span></a>
                    <a href="#"  class="tools_btn" onclick="checkAll(this);"><span><b class="checkAll">全选</b></span></a>
                    <asp:LinkButton runat="server" OnClientClick="return confirm( '确定要删除这些记录吗？ ');" 
                    CssClass="tools_btn" OnClick ="btn_Delete_Click" ID="btn_Delete"><span><b class="delete">批量删除</b></span></asp:LinkButton>
                </div>
            </div>
            <div class="chooseClass">
                <span>选择学院：</span>
                <asp:DropDownList ID="AcademyList"  runat="server" AutoPostBack="true" 
                    AppendDataBoundItems="True" 
                    onselectedindexchanged="AcademyList_SelectedIndexChanged" >
                    <asp:ListItem Value="">全部学院</asp:ListItem>
                </asp:DropDownList>
                <br />
            </div>
            <div class="content_table">
                <table class="msgtable">
                    <asp:Repeater ID="RpList" runat="server">
                        <HeaderTemplate>
                            <tr>
                                <th>选择</th>
                                <th>竞赛名称</th>
                                <th>所属学院</th>
                                <th>竞赛负责人</th>
                                <th>学期</th>
                                <th>参赛形式</th>
                                <th>区分专业组</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td><asp:CheckBox ID="CbChoose" CssClass="checkBox" runat="server" /></td>
                                <td><%#Eval("COM_NAME")%> <asp:HiddenField ID="Hf_id" runat="server" Value='<%#Eval("COM_ID") %>' /></td>
                                <td><%#Eval("ACA_NAME")%></td>
                                <td><%#Eval("TEA_NAME")%></td>
                                <td><%#Eval("COM_SEMESTER").ToString().Trim()=="-1"?"":(Eval("COM_SEMESTER").ToString().Trim()=="0"?"春季":"秋季")%></td>
                                <td><%#Eval("COM_FORM").ToString().Trim()=="0"?"个人":"小组"%></td>
                                <td><%#Eval("COM_SPECIALTY").ToString().Trim() == "0" ? "否" : "是"%></td>
                                <td></td>
                                <td><a href='AddInner.aspx?id=<%#Eval("COM_ID") %>&OPERATION=Modify'>修改</a>
                                |<a href ='AddInner.aspx?id=<%#Eval("COM_ID") %>&OPERATION=Delete'>删除</a></td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
            </div>
            <center>
                <div class="div_page">
                        <cc1:Pager ID="Pager1" runat="server"></cc1:Pager>
                </div>
            </center>
        </div>
        <div class="middle_right"></div>
     </div>
    </form>
</body>
</html>
